package com.zhang.server.service;

import com.zhang.server.common.Result;
import com.zhang.server.controller.request.BookPageRequest;
import com.zhang.server.entity.Book;

import java.util.List;

public interface IBookService {
    List<Book> list();

    Object page(BookPageRequest bookPageRequest);

    Integer save(Book book);

    Result getById(Integer id);

    void update(Book book);

    void delete(Integer id);

    Book getByBookNo(String bookNo);
}
